package com.hos.net.req.pat;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.hos.net.req.BaseReq;
import com.hos.net.res.MsgHint;

/**
 * Created by Administrator on 2018/8/24 0024.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class PatUpdateReq extends BaseReq {
    public String patId;
    public String patName;
    public String patPhone;
    public String patHead;
    public String patSex;
    public String patBirthday;
    public String patAddress;
    public Integer patState;
    @JsonIgnore
    public String hint;

    @JsonIgnore
    public boolean isVerifyParameter() {
        if (patId == null || patId == "") {
            hint = new MsgHint("患者id不能为空").toJson();
            return false;
        }
        return true;
    }
}
